<?php namespace Admin;
use Hdphp\Controller\Controller;

class AuthController extends Controller{

	public function __construct()
	{
		parent::__construct();
		if(!Rbac::isLogin())
		{
			go('Login/login');
		}

		if(!Rbac::verify())
		{
			if(__HISTORY__)
			{
				$this->error('没有操作权限');
			}
			else
			{
				go('Login/login');
			}
		}
	}
}